﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Workflow.Web.Models.LogOnModel>" %>
<%@ Import Namespace="Workflow.Resource" %>
<%@ Import Namespace="Workflow.Web.Models" %>
 

<head id="Head1" runat="server">
   
   <title><%=Global.LogOn %></title>
     <link href="../../image/Login/Site.css" rel="stylesheet" type="text/css" /> 
    <link href="../../image/Login/default.css" type="text/css" rel="stylesheet">
    <link href="../../image/Login/xtree.css" type="text/css" rel="stylesheet">
    <link href="../../image/Login/user_login.css" type="text/css" rel="stylesheet">
    <script src="../../Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
</head>
<body id="userlogin_body">
    <% using (Html.BeginForm())
       { %>
    
    <div>
        
    </div>
    <div id="user_login">
        <dl>
            <dd id="user_top">
                <ul>
                    <li class="user_top_l"></li>
                    <li class="user_top_c"></li>
                    <li class="user_top_r"></li>
                </ul>
                <dd id="user_main">
                    <ul>
                        <li class="user_main_l"></li>
                        <li class="user_main_c">
                            <div class="user_main_box">
                           
                                <ul>
                                    <li class="user_main_text">
                                        <%: Html.Label(Global.UserID)%>
                                    </li>
                                    <li class="user_main_input">
                                        <%: Html.TextBoxFor(m => m.UserName) %>  
                                        <%: Html.ValidationMessageFor(m => m.UserName) %>
                                        
                                    </li>
                                </ul>
                                <ul>
                                    <li class="user_main_text">
                                        <%: Html.Label(Global.password)%>
                                    </li>
                                    <li class="user_main_input">
                                        <%: Html.PasswordFor(m => m.Password) %>  
                                        <%: Html.ValidationMessageFor(m => m.Password) %>
                                    </li>
                                </ul>
                                <ul>
                                    <li class="user_main_text">
                                  <%--      <%: Html.LabelFor(m => m.RememberMe) %>--%>
                                    </li>
                                    <li class="user_main_input">
                                    <%: Html.LabelFor(m => m.RememberMe) %>
                                        <%: Html.CheckBoxFor(m => m.RememberMe) %>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="user_main_r">
                            <input   class="ibtnentercssclass" id="ibtnenter" style="border-top-width: 0px; border-left-width: 0px;
                                border-bottom-width: 0px; border-right-width: 0px" onclick='submit()'
                                type="image" src="../../image/Login/user_botton.gif" name="ibtnenter">
                        </li>
                    </ul>
                    <dd id="user_bottom">
                    
                        <ul>
                            <li class="user_bottom_l">  </li>
                            <li class="user_bottom_c"><span style="margin-top: 40px"> 
                                 </span> </li>
                            <li class="user_bottom_r"></li>
                        </ul>
                    </dd>
                    <li><%:Html.LanguageSelectorLink("en-US", "English", "English", null)%></li>|
                    <%-- 
                     <li><%:Html.LanguageSelectorLink("zh-CN", "中文", "中文", null)%></li>|
                     --%>
                      <li><%:Html.LanguageSelectorLink("ja-JP", "日本语", "日本语", null)%></li>
        </dl>
        <div id="validation"><%: Html.ValidationSummary(true, "") %></div>
    </div>
 
   
    <div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#UserName").val('<%=ViewData["name"]!=null?ViewData["name"]:"" %>');
            $("#Password").val('<%=ViewData["password"]!=null?ViewData["password"]:"" %>');
            <%
               if(ViewData["name"]!=null)
               {
                 Writer.Write( "$('#RememberMe').attr('checked', true)"); 
               }
                 
             %>
          

        });
    </script>
    
    <% } %></body>
<%--<h2>
    <%=ViewData["Title"] %></h2>
<p>
    Please enter your username and password.
    <%: Html.ActionLink("Register", "Register") %>
    if you don't have an account.
</p>
<% using (Html.BeginForm())
   { %>
<%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
<div>
    <fieldset>
        <legend>Account Information</legend>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.UserName) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.UserName) %>
            <%: Html.ValidationMessageFor(m => m.UserName) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.Password) %>
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(m => m.Password) %>
            <%: Html.ValidationMessageFor(m => m.Password) %>
        </div>
        <div class="editor-label">
            <%: Html.CheckBoxFor(m => m.RememberMe) %>
            <%: Html.LabelFor(m => m.RememberMe) %>
        </div>
        <p>
            <input type="submit" value="Log On" />
        </p>
    </fieldset>
</div>
<% } %>
--%>